class TicketMailer < ActionMailer::Base

  def report(ticket, message, user)
    @subject    = (ticket.ticket_template.name + " №"+ticket.number.to_s + " " + ticket.name) 
    @body["ticket"]  = ticket
    @body["message"] = message
    @bcc = ticket.group.emails
    @from       = user.name + ' via ATS <ats@email.email>'
    @sent_on    = sent_at = Time.now
    @headers    = {}
  end
end
